/**
 * 查询系统部门
 */
export const useLoadDepartmentTreeDataApi = ()=>{
    return useHttpPost("/department/tree",{})
}



/**
 * 保存&修改部门
 */
export const useSaveAdminDepartmentDataApi = (body)=>{
    return useHttpPost("/department/saveupdate",{body})
}


/**
 * 根据id查询部门
 */
export const useGetAdminSystemDepartmentByIdApi = (id)=>{
    return useHttpPost(`/department/get/${id}`,{})
}

/**
 * 根据id删除部门
 */
export const useDelAdminSystemDepartmentByIdApi = (id)=>{
    return useHttpPost(`/department/del/${id}`,{})
}

/**
 * 修改状态
 */
export const useUpdateStatusDepartmentApi = ({id,field,value})=>{
    body.field = C2B(body.field)
    return useHttpPost(`/department/status/${id}/${field}/${value}`,{})
}